<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="实名认证">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <#if param??&&param.status??>
                                <#assign status=(param.get("status"))?number >
                                    <#else>
                                        <#assign status=0>
                            </#if>
                            <form action="verifyRealname.html" method="post">
                                <div class="toolbor-module search">
                                    <div class="formTit">用户名：</div>
                                    <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                    <div class="formTit">状态：</div>
                                    <div class="select-box" id="status">
                                        <div class="tag-select">全部</div>
                                        <ul class="tag-options">
                                            <li data-value="-1" <#if status==-1 >data-selected="selected"</#if> class="open-selected">全部</li>
                                            <li data-value="0" <#if status==0 >data-selected="selected"</#if>>未申请</li>
                                            <li data-value="2" <#if status==2 >data-selected="selected"</#if>>等待审核</l>
                                            <li data-value="1" <#if status==1 >data-selected="selected"</#if>>已通过</li>
                                            <li data-value="4" <#if status==1 >data-selected="selected"</#if>>审核不通过</li>
                                        </ul>
                                    </div>
                                    <input type="button" value="搜索" onclick="sousuo();"  class="input-button" >
                                </div>
                            </form>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form action="" method="post">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>用户名称</td>
                                        <td>真实姓名</td>
                                        <td>性别</td>
                                        <td>民族</td>
                                        <td>生日</td>
                                        <td>证件类型</td>
                                        <td>证件号码</td>
                                        <td>身份证到期时间</td>
                                        <td>籍贯</td>
                                        <td>身份证图片</td>
                                        <td>状态</td>
                                        <td>易极付状态</td>
                                        <td>操作</td>
                                    </tr>

                                    <#if list??> <#list list as obj>
                                        <td><a onclick='alertPop("用户详细信息查看","url:get?viewUserInfo.html?userId=${obj.userId!''}",500,230,"true","","true","text");'
                                            href="javascript:void(0)">${obj.username!"-"} </a></td>
                                        <td>${obj.realname!"-"}</td>
                                        <td><#if obj.sex??&& obj.sex=="1">男<#else>女</#if></td>
                                        <td><#if obj.nation??>${obj.nation.name}<#else>-</#if></td>
                                        <td>${obj.birthday!"-"}</td>
                                        <td><#if obj.cardType??>${Type(obj.cardType,"name")}<#else>-</#if></td>
                                        <td>${obj.cardId!"-"}</td>
                                        <td>${obj.cardOff!"-"}</td>
                                        <td><#if obj.province??>${obj.province.name!"-"}</#if>-<#if obj.city??>${obj.city.name!"-"}</#if>-<#if obj.area??>${obj.area.name!"-"}</#if></td>
                                        <td>
                                            <a href="javascript:void(0);" onclick='alertPop("身份证正面","url:get?viewUserInfo.html?viewType=viewCard&userId=${obj.userId!''}&viewcard=cardC",500,400,"true","","true","text");'>正面</a>|
                                            <a href="javascript:void(0);" onclick='alertPop("身份证背面","url:get?viewUserInfo.html?viewType=viewCard&userId=${obj.userId!''}&viewcard=cardD",500,400,"true","","true","text");'>背面</a>
                                        </td>
                                        <td>
                                            <#if obj.realStatus??&& ( obj.realStatus==1 || obj.realStatus==3)><font color="#009900">审核通过<#elseif obj.realStatus==2><font color="#f00">等待审核</font><#elseif obj.realStatus==4><font color="#f00">未通过</font>
                                                <#else>暂未申请</#if>
                                        </td>
                                        <td><a href="javascript:void(0);" onclick='alertPop("易极付实名认证信息","url:get?viewYjfRealName.html?userId=${obj.userId!''}",500,400,"true","","true","text");'>查看</a></td>
                                        <td><#if obj.cardType??&&obj.cardId??>
                                            <#if obj.realStatus??&&(obj.realStatus==3 || obj.realStatus==0 || obj.realStatus==4)>
                                                -
                                                <#elseif obj.realStatus??&&obj.realStatus==1>
                                                    <a  href="#" onClick="javascript:if(confirm('确定执行【撤回认证】?')) location.href='${request.getContextPath()}/admin/attestation/realNameRevocation.html?userId=${obj.userId!''}'">撤回认证</a>
                                                    <#elseif obj.realStatus??&&obj.realStatus==2>
                                                        <a onclick='alertPop("真实姓名审核","url:get?viewAudit.html?userId=${obj.userId?c}&type=realname",500,250,"true","","true","text");' href="javascript:void(0)">审核</a>
                                            </#if>
                                            <#else>
                                                ---
                                        </#if>
                                        </td>
                                        </tr>
                                    </#list> </#if>
                                </table>
                            </form>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container s_formPage">
                                    <#import "../../common/page.html" as pager >
                                        <@pager.pagination page=page url="/admin/attestation/verifyRealname.html" map=param style="style1"/>
                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->
                            <!--底部工具栏--}-->

                            <script>
                                var urls = '?search=true';
                                function sousuo(){
                                    var sou = "";
                                    var username = $("#username").val();
                                    if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    var status = $("#status").find(".open-selected").attr("data-value");
                                    if (status!=null&&status!=""&&status!="undefine"){
                                        sou += "&status="+status;
                                    }
                                    var url=urls+sou
                                    location.href=url;
                                }
                            </script>
                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    <script type="text/javascript">
        function showYjfRealName() {
            $.ajax();
        }
    </script>
    </body>
</html>